#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/12/1 15:29
# @Author  : huidong.bai
# @File    : main.py
# @Software: PyCharm

# celery启动文件
from celery import Celery


# 1、创建celery实例对象
celery_app = Celery('my-django-project')

# 2、加载celery配置文件
celery_app.config_from_object('celery_tasks.config')

# 3、自动注册异步任务
celery_app.autodiscover_tasks(['celery_tasks.speaker_monitor'])
